<?php
//申请成为局长的时候，客户填写的资料提交到这里。
//似乎是假的
//似乎是假的
//似乎是假的
//似乎是假的
//似乎是假的
//似乎是假的
//似乎是假的


//设置需要搜索的表格的前缀后缀
$table = $table_Prefix . "member";


//上传图片接口，请调用公用的  /system/uploadimg.php


$_REQUEST['ai_employee_id']  = $user_id;
$_REQUEST['ai_leader_apply'] = "申请中";
$_REQUEST['ai_name']         = $_REQUEST['name'];
$_REQUEST['ai_age']          = $_REQUEST['age'];
$_REQUEST['ai_language']     = $_REQUEST['language'];
$_REQUEST['ai_favorite']     = $_REQUEST['favorite'];
$_REQUEST['ai_address']      = $_REQUEST['address'];
$_REQUEST['ai_remark']       = $_REQUEST['remark'];
$_REQUEST['ai_gender']       = $_REQUEST['gender'];
$_REQUEST['ai_medic']        = $_REQUEST['medic'];
$_REQUEST['ai_insurance']    = $_REQUEST['insurance'];
$_REQUEST['ai_idimg01'] = substr($_REQUEST['idimg01'],strripos($_REQUEST['idimg01'],"/")+1);
$_REQUEST['ai_idimg02'] = substr($_REQUEST['idimg02'],strripos($_REQUEST['idimg02'],"/")+1);


    $sql   =update_date($table,$_REQUEST,"nid",$_REQUEST['nid']);
    $query = do_query($sql) or die (mysqli_error().$sql);
    mysqli_close($con);

    if($query){
        $arr['status'] = 200;
        $arr['info'] = '更新成功';
        die(json_encode($arr)) ;
    }
    else{
        $arr['status'] = 501;
        $arr['info'] = '更新失败';
        die(json_encode($arr)) ;
    }


    ?>